<template>
	<view class="content">
		<!-- 直接引入组件 -->
		<!-- <Userlnfo username="咸虾米" avatar="../../static/pic1.jpg"></Userlnfo>
		<Userlnfo  avatar="../../static/pic2.jpg"></Userlnfo>
		<Userlnfo :username="name" ></Userlnfo> -->
		
		
		<!-- 										在obj中可以直接传给字类item一整个值 -->
		<Userlnfo v-for="(item,index) in userinfo" :obj="item">
			
		</Userlnfo>
		
	</view>
</template>

<script setup>
import {ref} from "vue"
// const name = ref("王五")
const userinfo = ref([
	{name:"张三",avatar:"../../static/pic1.jpg"},
	{name:"李四",avatar:"../../static/pic2.jpg"},
	{name:"王五",avatar:"../../static/pic3.jpg"}
])


</script>

<style>

</style>
